<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>联级下拉</title>
<script type="text/javascript" src="AjaxRequest.js"></script>
</head>
<body>
	<script type="text/javascript">
		function getProvince() {
			var loader = new net.AjaxReuqest("../../ZoneServlet?action=getProvince&nocache=" + new Date().getTime(), deal_getProvince, onerror, "GET");
		}
		function deal_getProvince() {
			provinceArr = this.req.responseText.split(",");
			for (i = 0; i < provinceArr.length; i++) {
				document.getElementById("province").options[i] = new Option(provinceArr[i].provinceArr[i]);
			}
			if (provinceArr[0] != "") {
				getCity(provinceArr[0]);
			}
		}
		window.onload = function () {
			getProvince();
		}
	</script>
</body>
</html>